package com.jiangore.service.impl;

import com.jiangore.dao.MemberDao;
import com.jiangore.entity.Member;
import com.jiangore.service.IMemberService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Todo
 * @Author jiangtao
 * @CreateBy 2020-03-09 10:33 PM
 * @UpdateBy jiangtao
 * @Version v1.0
 */
@Slf4j
@Service
public class MemberServiceImpl implements IMemberService {

    @Resource
    private MemberDao dao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Member record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(Member record) {
        return dao.insertSelective(record);
    }

    @Override
    public Member selectByPrimaryKey(Integer id) {
        return dao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Member record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Member record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public List<Member> getAll(Map<String, Object> map) {
        return dao.getAll(map);
    }

    @Override
    public int getCount(Map<String, Object> map) {
        return dao.getCount(map);
    }

}
